package edu.sctu.practice.class01.wujiayi.edu.sctu.test.computer;

/**
 * Created by acer1 on 2015/9/24.
 */
public class Computer {

    private String brand;
    private int modelnumber;
    private String color;

    public void computerComponent() {
        String screen;
        String keyboard;
        String mouse;
        System.out.println("Computercomponent are screen,keyboard and mouse");
    }

    public boolean isDesktopComputer(boolean is) {
        if (is = true) {
            System.out.println("it is Desktop Computer!");
        } else {
            System.out.println("it is not Desktop Computer!");
        }
        return is;
    }

    public boolean isNotebookPC(boolean an) {
        if (an = true) {
            System.out.println("it is NotebookPC!");
        } else {
            System.out.println("it is not NotebookPC!");
        }
        return an;
    }

}
